package com.tedu.mybatis2.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ProductMapper {
@Insert("INSERT INTO product (title,price,stock) VALUES (#{title},#{price},#{stock})")
int ProductInsert();
@Select("SELECT id,titile,price,stock FROM product WHERE id=#{id}")
    int ProductSelect();
@Delete("SELECT id FROM product WHERE id=#{id}")
    int productDelect();
}
